home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / istar / docs / driving istar < prev    next >
Text File  |  1996-07-27  |  12KB  |  255 lines

  1. DRIVING ISTAR
  2.  
  3. WHAT DO I NEED TO START IT?
  4.  
  5. Normally you don't need to bother about this lot as they are set up during 
  6. installation and Amiga startup.  But if something goes wrong then this list 
  7. might help.
  8.  
  9. #  assign KBTools: to some directory for best effect
  10. #  iff.library
  11. #  asl.library is needed for saving etc. (supplied with Amiga 1200)
  12. #  CGTimes Font
  13. #  Topaz 11 Font
  14. #  Topaz 8 Font (supplied with any Amiga)
  15.  
  16.  
  17. HOW DO I START IT?
  18.  
  19. 1.  Double click on the Istar icon.
  20.  
  21. 2.  You will be presented with a grey Control Screen part way up the view. 
  22. Initially this has 'Istar' on its title bar but that is soon obscured by a 
  23. horizontal strip and, at the left, the Initial Control Panel.
  24.  
  25. 3.  Click the 'New' button, and two things will happen.  First another 
  26. screen, a large blank white one appears.  This is the Easel on which you 
  27. draw your KB (knowledge base).  And, on the Control Screen, another panel 
  28. appears with columns of buttons and two list gadgets.  (If you are 
  29. operating with limited memory, the standard Easel size (30 by 24 inches) 
  30. might be too large, and you will have to alter the Prefs before clicking 
  31. the New button.)
  32.  
  33. Here are a few instructions to get you started ...
  34.  
  35. 4.  Draw a box by pressing Left Mouse Button (LMB) over Easel, a box 
  36. appears, move mouse around to place it, then release LMB.  (Do not click 
  37. it; clicking does something else.)
  38.  
  39. 5.  Draw another box, to the right of first one.
  40.  
  41. 6.  Press LMB over the right hand edge of the left-hand box, and you will 
  42. see a short line appear from your mouse pointer to a point one quarter the 
  43. way into the box.  This line follows the mouse as you move it.  Move until 
  44. line is over the right-hand box and release.  If you want to insert a bend 
  45. in your line, hit Space bar when end of line is where you want the bend. 
  46. The left-hand box is called the antecedent of the right, and the right is 
  47. the consequent of the left.
  48.  
  49. 7.  (To escape from any operation you have started but don't want, hit the 
  50. Escape key.  Then release the mouse button.)
  51.  
  52. That's the basic mechanism, and the whole knowledge base can be drawn like 
  53. that.  Not too bad, is it?
  54.  
  55.  
  56. GOING FURTHER
  57.  
  58. 8.  Various modifications of the diagram are possible:
  59.  
  60.       a)  Move a box by pressing LMB over the centre of the box.  Dotted
  61.       skeleton of the box and all its connecting links appears.  Move mouse
  62.       and this lot follows.  Release in new position.  (Note that boxes can
  63.       overlap, though it is usually not wise to do so; overlapping is
  64.       usually reserved to collections of boxes that are closely related
  65.       semantically.)
  66.  
  67.       b)  Bend a drawn link by pressing LMB over a link.  Dotted bent line
  68.       follows mouse to new position; release.  Pressing LMB over existing
  69.       bend will just move the bend to new position.
  70.  
  71.       c)  To redirect a link to another box, delete a box, delete a link,
  72.       delete a bend from a link:  see below.
  73.  
  74. 9.  Entering detail, e.g. Name and Meaning.  Click the Right Mouse Button 
  75. (RMB) over centre of box.  (If you get a dotted box outline as in 7(a) then 
  76. you haven't clicked fast enough; hit escape key, release MB and try again. 
  77. You'll soon get the hang of it.)  Up comes the Control Screen, showing an 
  78. Attribute Detail panel with around fifty gadgets.  Don't panic: you need 
  79. only the top two: Label and Meaning; ignore the others for now.  These are 
  80. string gadgets which allow you to enter a name for the box and a longer 
  81. meaning if you wish.  For now, put something in both boxes - anything in 
  82. that you like.  Then click the OK button.  The Control Screen returns and 
  83. your box should display the new name.
  84.  
  85. 10.  Showing Meaning.  Move the mouse over the box (do not press any mouse 
  86. button).  The Meaning text should appear in the horizontal window in the 
  87. top of the Control Screen.  Move mouse away, and it disappears.  In this 
  88. way, even when the box label text is too small to read you can easily see 
  89. what a box means.
  90.  
  91. 11.  More antecedents.  Draw another couple of boxes (see 3 above) near the 
  92. left-hand box (above or below it) and link these to the right-hand box as 
  93. in 5 above, so that it now has three or more antecedents.  Best also to 
  94. name them with different names as in 8 above.
  95.  
  96. 12.  Running the KB.  Now click with the Left Mouse Button over the centre 
  97. of the right-hand box.  Up comes a small panel at the top of the Control 
  98. Screen containing a few buttons, the Attribute Action panel.  The two 
  99. buttons on the left are: Reset and Infer, which allow you to run the KB. 
  100. Hit Reset, then hit Infer.  Up comes a User Question panel, with text at 
  101. the top ("No text for xxxx"; we can change that, below), a large central 
  102. Value gadget and an large OK gadget to right, with a few others.  Enter a 
  103. Value and press OK.  Then a similar panel should appear for the next 
  104. attribute.  And the next.  If you have three left-hand boxes feeding into 
  105. the right-hand one you should get three such User Question panels.
  106.  
  107. 13.  Seeing the result.  When the question sequence has finished, the 
  108. Attribute Action panel is still there.  Hit the Data button, and you are 
  109. taken to the Attribute Details panel.  The result should be shown on the 
  110. second row in the middle - and it should be the sum of all the values you 
  111. entered during the question sequence.
  112.  
  113. 14.  Selecting the inference method.  The inference method is the way the 
  114. values found in the antecedent are combined to give a value to the 
  115. consequent.  The default for an integer consequent is addition.  But this 
  116. can be changed.  On the Attribute Details panel there are three radio 
  117. buttons on the left hand side, with the middle selected: 'Inference'.  To 
  118. its right is a small button with the name of the inference method, 'X = A + 
  119. B + C ..", indicating addition.  Hit the button and a list of different 
  120. inference methods is presented.  Choose one - say multiplication - and hit 
  121. its OK button.
  122.  
  123. 15.  Now hit the OK-Act button; this is similar to OK, but takes you to the 
  124. Attribute Action panel directly, having stored the new inference method in 
  125. the attribute.  As in 10, hit Reset then Infer to get the sequence of 
  126. questions.  Their values remain, so you need only hit OK for each.  Hit 
  127. 'Data..' to see the new value, which should be the product of your values.
  128.  
  129. 16.  Suppressing irrelevant information.  Note that Istar only asks 
  130. questions that it needs to, and thus avoids asking irrelevant ones.  With 
  131. multiplication this happens if one of the antecedents is zero - we then 
  132. know the consequent will be zero, whatever values the remaining antecedents 
  133. take, so there is no point asking them.  Try it.  (If you forget how, go to 
  134. the Attribute Action panel of the consequent, hit Reset and Infer.  Then 
  135. put the second User Question value to 0 and hit OK.  The third should not 
  136. be asked.)
  137.  
  138. 17.  Control Screen.  Whenever you want to access the Control Screen, click 
  139. the Gadget showing two arrows at top left of the Control Screen.  Up it 
  140. comes.  Click it again, and it parks back down the bottom.  Alternatively, 
  141. you can drag the Control Screen up and down manually using the two-pixel 
  142. strip at the top of the Screen above the Meaning Strip.  (Advanced use: 
  143. You can change the parking position, e.g. to be lower and reveal more of 
  144. the Easel.  To do this, drag the Control Screen to where you want its 
  145. parking position to be and then click the wee gadget immediately to the 
  146. right of the up-and-down one.  This records a new parking position.)
  147.  
  148. 18.  Different item types.  Bring up the control screen.  Top right window 
  149. should show list of item types.  Select Proportion, send Control Screen 
  150. back down again, and draw box; should say 'Proportion'.  Once you have 
  151. several types of box in your Easel a quick way of changing type is to move 
  152. mouse over a box of the type you want and hit 'T' key (for 'Type').  Try it 
  153. over one of the original (Integer) boxes and note how the Item Type 
  154. Selection changes to Integer.  Draw, and you'll get an integer.
  155.  
  156. 19.  Automatic Type Conversion.  Now link from right hand side of the 
  157. Proportion box to one of the original (Integer) boxes.  When the link is 
  158. operative (see below) there will be an automatic conversion from Proportion 
  159. to Integer (usually as a percentage 0 to 100).
  160.  
  161.  
  162. WHAT MORE IS THERE?
  163.  
  164. 20.  Lots more.  That should more than get you started.  But there's lots 
  165. more:
  166.  
  167.       #  Larger inference nets
  168.             #  Multi-step
  169.             #  Loop prevention
  170.             #  Scrolling
  171.             #  Zooming
  172.             #  Showing parts
  173.       #  Goal lists
  174.       #  Topics
  175.       #  Find
  176.       #  Forms
  177.       #  Creating new item types, multiple attributes
  178.       #  Creating new attribute types
  179.       #  Document creation
  180.       #  KB Dump, save, load.
  181.  
  182.  
  183. **  IF YOU WISH, YOU CAN NOW GO STRAIGHT TO <USING ISTAR>.
  184.  
  185.  
  186. WHAT IS AN ITEM?
  187.  
  188. An item in Istar is some focus of attention in the knowledge base.  It is 
  189. represented on the Easel by a box or group of boxes that move together.  An 
  190. item can have:
  191.  
  192.       #  any number of attributes (so far they have had only 1)
  193.       #  relationships to other items
  194.  
  195. On the Item Type list on the KB panel, select 'Contract Meaning'.  This is 
  196. an item expressed by two boxes, when you draw it on the Easel.  The top one 
  197. represents the item itself, the bottom one an attribute of the item.
  198.  
  199.       You can define your own item types.  Let's try doing so.  Hit the
  200. 'New' button on the SIT panel.  A new panel, Create New Item Type (CNIT) 
  201. comes up for an item type called 'Unnamed'.  Change the name to 'Employee'.
  202.  
  203.       Now we will add attributes to the item type.  To add each attribute
  204. to an item type we do three things:
  205.  
  206.       1.  Set the type
  207.       2.  Set the name
  208.       3.  Click the addition button just above the Type.
  209.  
  210. So first, hit the Type wee button, and select String from the list that 
  211. comes up; hit its OK button.  Then in the Attribute name to the left of the 
  212. Type, enter 'Name'.  Now hit the button above Type.  'Name' will appear in 
  213. the list in the middle of the panel.  Now create an attribute called 'Age', 
  214. of type Integer using the same steps.  Now create an attribute called 'Day 
  215. off' of Type 'Weekdays'.  Lastly, create an attribute called 'Salary' of 
  216. Type Integer.
  217.  
  218.       Then press OK (called Done in some versions) on the CNIT panel, and
  219. it disappears.  Look at the SIT panel and you will see 'Employee' has been 
  220. added at the bottom and should be selected (if not, select it).
  221.  
  222.       Now draw on the Easel and you should get a tall box group with five
  223. boxes: a smaller one at the top representing the employee itself, with four 
  224. attribute boxes: Name, Age, Day off, Salary.
  225.  
  226.       Notice the similarity to databases: item = entity or record,
  227. attribute = attribute or field.  Unlike many databases new item types can 
  228. be created at any time.  And (probably not this version) new attributes can 
  229. be added to existing item types.
  230.  
  231.  
  232. WHAT IS AN ATTRIBUTE?
  233.  
  234. An attribute is a holder of a value - such as Name, Age, etc.  It can be of 
  235. two types: in an item or a free attribute.  Each attribute is expressed by 
  236. a box.  When you started above, you were drawing (creating) free 
  237. attributes.  When you drew the Employee box group you created an item with 
  238. for attributes.  Free attributes actually belong to a hidden item, for 
  239. which there is no visible box.
  240.  
  241.       Attributes can be of a variety of types, which normally are defined
  242. in terms of value types (see below).
  243.  
  244.       It became clear during the INCA research project that the
  245. conventional picture, of items with several attributes, was not always 
  246. appropriate.  In an inference net a lot of items exist merely to support a 
  247. single attribute, and so Istar developed the idea of 'free attributes', in 
  248. which the item is still there for structural purposes but is de-emphasized 
  249. and not shown on the easel.  So in the Select Item Type panel the first set 
  250. of items is normally a load of free attributes.  They are represented by 
  251. single boxes.  Whether they are called attributes or items is immaterial.
  252.  
  253.  
  254. Copyright (c) Andrew Basden, 1996
  255.